package bootstrap

import (
	"Walker/global"
	"runtime"
	"strings"
)

func BasePath() {
	_, file, _, _ := runtime.Caller(1)
	//切割文件获取根目录
	arr:= strings.Split(file,"bootstrap")
	str:=arr[0]
	global.BasePath = str
	global.StoragePath = str+"/storage/logs/"
	global.HttpPath = str+"/app/http/"
}
